import * as http from './utils/http'

export default {
  /**
   * 图片文件上传
   * @param  {File} file 文件流数据
   * @return {Promise}
    {
      "url":"图片文件地址"
    }
   */
  image (file) {
    return http.post(
      'upload/image', file
    )
  }
}
